﻿<div id="main" style="float:left;margin-left:0px;min-height:425px;"> 
  <h3>
    <a href="###" loadaction="listMyFriendlyTeam/id/{$Think.get.id}" class="aload"> 我的友情团队</a>&nbsp;|&nbsp;
    <a href="###" loadaction="listInvitedTeam/id/{$Think.get.id}"  class="aload" >未审核的友情团队</a>&nbsp;|&nbsp;
    <a href="###" loadaction="listInvitTeam/id/{$Think.get.id}"  class="aload" >我邀请的的友情团队</a>
  </h3>
  <div class="loadaction1" style="height:300px;">
    

  </div>
</div> 
<script type="text/javascript">
  $(function(){
    $(".loadaction1").load("__URL__/listMyFriendlyTeam");
    $(".aload").click(function(){
      var val=$(this).attr("loadaction");
      //alert(val);
      $(".loadaction1").load("__URL__/"+val);

    });

  });
  $(function(){
    $('.delworks').click(function(){
      var isdel=confirm('您确定要删除吗？');
      if(isdel){
        var val=$(this).attr("val");
        obj=$(this);
        $.ajax({
          type: "POST",
          url: "__URL__/delworks",
          data: "fileid="+val,
          success: function(msg){
            alert(msg);
            obj.parent().parent().remove();
          }
        });
      }

    });
  });

</script>
